<template>
  <div>
    <a href="http://www.baidu.com" @click="one">去百度</a>
    <hr />
    <a href="http://www.taobao.com" @click="two(10, $event)">去淘宝</a>
  </div>
</template>

<script>
export default {
  methods: {
    one(e) {
      e.preventDefault();
    },
    two(num, e) {
      e.preventDefault();
    },
  },
};
</script>

<style>
</style>